﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace d39
{
    public partial class MoveList : GridControl
    {
        protected override void UpdateFromGrid(bool playersOrMovesChanged, bool wallTerrainChanged)
        {
            if (playersOrMovesChanged)
            {
                UpdatePanel.Update();
                Moves.DataSource = CurrentGrid.RevealedMoves;
                DataBind();
            }
        }
        protected string GetMoveString(dynamic positionMove)
        {
            return positionMove.GetMoveString(CurrentGrid.DnDVersion);
        }
    }
}